package com.smarttest.portal.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbAutoTimertaskExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbAutoTimertaskExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andEnvidIsNull() {
            addCriterion("envid is null");
            return (Criteria) this;
        }

        public Criteria andEnvidIsNotNull() {
            addCriterion("envid is not null");
            return (Criteria) this;
        }

        public Criteria andEnvidEqualTo(Integer value) {
            addCriterion("envid =", value, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidNotEqualTo(Integer value) {
            addCriterion("envid <>", value, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidGreaterThan(Integer value) {
            addCriterion("envid >", value, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidGreaterThanOrEqualTo(Integer value) {
            addCriterion("envid >=", value, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidLessThan(Integer value) {
            addCriterion("envid <", value, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidLessThanOrEqualTo(Integer value) {
            addCriterion("envid <=", value, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidIn(List<Integer> values) {
            addCriterion("envid in", values, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidNotIn(List<Integer> values) {
            addCriterion("envid not in", values, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidBetween(Integer value1, Integer value2) {
            addCriterion("envid between", value1, value2, "envid");
            return (Criteria) this;
        }

        public Criteria andEnvidNotBetween(Integer value1, Integer value2) {
            addCriterion("envid not between", value1, value2, "envid");
            return (Criteria) this;
        }

        public Criteria andReleaseidIsNull() {
            addCriterion("releaseid is null");
            return (Criteria) this;
        }

        public Criteria andReleaseidIsNotNull() {
            addCriterion("releaseid is not null");
            return (Criteria) this;
        }

        public Criteria andReleaseidEqualTo(Integer value) {
            addCriterion("releaseid =", value, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidNotEqualTo(Integer value) {
            addCriterion("releaseid <>", value, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidGreaterThan(Integer value) {
            addCriterion("releaseid >", value, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidGreaterThanOrEqualTo(Integer value) {
            addCriterion("releaseid >=", value, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidLessThan(Integer value) {
            addCriterion("releaseid <", value, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidLessThanOrEqualTo(Integer value) {
            addCriterion("releaseid <=", value, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidIn(List<Integer> values) {
            addCriterion("releaseid in", values, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidNotIn(List<Integer> values) {
            addCriterion("releaseid not in", values, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidBetween(Integer value1, Integer value2) {
            addCriterion("releaseid between", value1, value2, "releaseid");
            return (Criteria) this;
        }

        public Criteria andReleaseidNotBetween(Integer value1, Integer value2) {
            addCriterion("releaseid not between", value1, value2, "releaseid");
            return (Criteria) this;
        }

        public Criteria andDescribingIsNull() {
            addCriterion("describing is null");
            return (Criteria) this;
        }

        public Criteria andDescribingIsNotNull() {
            addCriterion("describing is not null");
            return (Criteria) this;
        }

        public Criteria andDescribingEqualTo(String value) {
            addCriterion("describing =", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingNotEqualTo(String value) {
            addCriterion("describing <>", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingGreaterThan(String value) {
            addCriterion("describing >", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingGreaterThanOrEqualTo(String value) {
            addCriterion("describing >=", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingLessThan(String value) {
            addCriterion("describing <", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingLessThanOrEqualTo(String value) {
            addCriterion("describing <=", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingLike(String value) {
            addCriterion("describing like", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingNotLike(String value) {
            addCriterion("describing not like", value, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingIn(List<String> values) {
            addCriterion("describing in", values, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingNotIn(List<String> values) {
            addCriterion("describing not in", values, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingBetween(String value1, String value2) {
            addCriterion("describing between", value1, value2, "describing");
            return (Criteria) this;
        }

        public Criteria andDescribingNotBetween(String value1, String value2) {
            addCriterion("describing not between", value1, value2, "describing");
            return (Criteria) this;
        }

        public Criteria andExctypeIsNull() {
            addCriterion("exctype is null");
            return (Criteria) this;
        }

        public Criteria andExctypeIsNotNull() {
            addCriterion("exctype is not null");
            return (Criteria) this;
        }

        public Criteria andExctypeEqualTo(Integer value) {
            addCriterion("exctype =", value, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeNotEqualTo(Integer value) {
            addCriterion("exctype <>", value, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeGreaterThan(Integer value) {
            addCriterion("exctype >", value, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("exctype >=", value, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeLessThan(Integer value) {
            addCriterion("exctype <", value, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeLessThanOrEqualTo(Integer value) {
            addCriterion("exctype <=", value, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeIn(List<Integer> values) {
            addCriterion("exctype in", values, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeNotIn(List<Integer> values) {
            addCriterion("exctype not in", values, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeBetween(Integer value1, Integer value2) {
            addCriterion("exctype between", value1, value2, "exctype");
            return (Criteria) this;
        }

        public Criteria andExctypeNotBetween(Integer value1, Integer value2) {
            addCriterion("exctype not between", value1, value2, "exctype");
            return (Criteria) this;
        }

        public Criteria andRuntimeIsNull() {
            addCriterion("runtime is null");
            return (Criteria) this;
        }

        public Criteria andRuntimeIsNotNull() {
            addCriterion("runtime is not null");
            return (Criteria) this;
        }

        public Criteria andRuntimeEqualTo(String value) {
            addCriterion("runtime =", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeNotEqualTo(String value) {
            addCriterion("runtime <>", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeGreaterThan(String value) {
            addCriterion("runtime >", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeGreaterThanOrEqualTo(String value) {
            addCriterion("runtime >=", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeLessThan(String value) {
            addCriterion("runtime <", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeLessThanOrEqualTo(String value) {
            addCriterion("runtime <=", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeLike(String value) {
            addCriterion("runtime like", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeNotLike(String value) {
            addCriterion("runtime not like", value, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeIn(List<String> values) {
            addCriterion("runtime in", values, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeNotIn(List<String> values) {
            addCriterion("runtime not in", values, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeBetween(String value1, String value2) {
            addCriterion("runtime between", value1, value2, "runtime");
            return (Criteria) this;
        }

        public Criteria andRuntimeNotBetween(String value1, String value2) {
            addCriterion("runtime not between", value1, value2, "runtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}